/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_anotacionCriteria extends AbstractORMCriteria {
	public final IntegerExpression an_id_anotacion;
	public final StringExpression an_fecha;
	public final StringExpression an_descripcion;
	
	public Tan_anotacionCriteria(Criteria criteria) {
		super(criteria);
		an_id_anotacion = new IntegerExpression("an_id_anotacion", this);
		an_fecha = new StringExpression("an_fecha", this);
		an_descripcion = new StringExpression("an_descripcion", this);
	}
	
	public Tan_anotacionCriteria(PersistentSession session) {
		this(session.createCriteria(Tan_anotacion.class));
	}
	
	public Tan_anotacionCriteria() throws PersistentException {
		this(orm.AnotacionespowaPersistentManager.instance().getSession());
	}
	
	public Tan_subsectorCriteria createSu_id_subsectorCriteria() {
		return new Tan_subsectorCriteria(createCriteria("su_id_subsector"));
	}
	
	public Tan_anotadorCriteria createAn_id_anotadorCriteria() {
		return new Tan_anotadorCriteria(createCriteria("an_id_anotador"));
	}
	
	public Tan_tipoanotacionCriteria createTa_id_tipoanotacionCriteria() {
		return new Tan_tipoanotacionCriteria(createCriteria("ta_id_tipoanotacion"));
	}
	
	public Tan_alumnoCriteria createAl_id_alumnoCriteria() {
		return new Tan_alumnoCriteria(createCriteria("al_id_alumno"));
	}
	
	public Tan_anotacion uniqueTan_anotacion() {
		return (Tan_anotacion) super.uniqueResult();
	}
	
	public Tan_anotacion[] listTan_anotacion() {
		java.util.List list = super.list();
		return (Tan_anotacion[]) list.toArray(new Tan_anotacion[list.size()]);
	}
}

